package org.mmw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(description = "图书信息")
@TableName("books")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "图书编号")
    @TableField("ISBN")
    private String isbn;

    @ApiModelProperty(value = "书名")
    @TableField("book_name")
    private String bookName;

    @ApiModelProperty(value = "作者")
    @TableField("author_name")
    private String authorName;

    @ApiModelProperty(value = "出版社")
    @TableField("press")
    private String press;

    @ApiModelProperty(value = "出版日期")
    @TableField("publication_date")
    private Date publicationDate;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private double price;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更改时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user")
    private Long createUser;

    @ApiModelProperty(value = "更改人")
    @TableField("update_user")
    private Long updateUser;
}


